﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 工单信息实体.
/// </summary>
[SugarTable("qms_busi_workorder","工单信息")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBusiWorkorderEntity :CLDEntityBase
{

    /// <summary>
    /// 工单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code",ColumnDescription = "工单号")]
    public string Code { get; set; }

    /// <summary>
    /// 工单类型.
    /// </summary>
    [SugarColumn(ColumnName = "F_Type",ColumnDescription = "工单类型")]
    public string Type { get; set; }

    /// <summary>
    /// 物料ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId",ColumnDescription = "物料ID")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty",ColumnDescription = "数量")]
    public int? Qty { get; set; }

    /// <summary>
    /// 单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unit",ColumnDescription = "单位")]
    public string Unit { get; set; }

    /// <summary>
    /// 计划开始时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_PlanStartTime",ColumnDescription = "计划开始时间")]
    public DateTime? PlanStartTime { get; set; }

    /// <summary>
    /// 计划完成时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_PlanEndTime",ColumnDescription = "计划完成时间")]
    public DateTime? PlanEndTime { get; set; }

    /// <summary>
    /// 实际开始时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_ActualStartTime",ColumnDescription = "实际开始时间")]
    public DateTime? ActualStartTime { get; set; }

    /// <summary>
    /// 实际完成时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_ActualEndTime",ColumnDescription = "实际完成时间")]
    public DateTime? ActualEndTime { get; set; }

    /// <summary>
    /// 状态：0=保存，1=提交，3=完工.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status",ColumnDescription = "状态：0=保存，1=提交，3=完工")]
    public int? Status { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remark",ColumnDescription = "备注")]
    public string Remark { get; set; }

}